import parseTemplate from './parseTemplate'
import renderTemplate from './renderTemplate'



window.bohrapsEngine = {
  render (temlatestr, data) {
    let tokens = parseTemplate(temlatestr);
    // console.log(tokens);

    // 转为DOM字符串
    let domstr = renderTemplate(tokens, data);

    return domstr;
  }
}
